<?php

/*
*###########################################################################################################################*
#															    															#
#															    															#
#    **  ** ****** ** **  **  ****** ** ***   ** ***   ****** ** **  **  ** **  ** ** **  **    ****   ** **  **  ******    #
#    **  ** ****** ********** ****** *******  *******  ****** ********** ** **  ** **********  ******  ********** ******    #
#    **  ** **  ** **  **  ** **     ***   ** **    ** **     **  **  **    **  ** **  **  ** ***   ** **  **  ** **        #
#    ****** **  ** **  **  ** ****** **   *** **   *** ****** **  **  ** ** **  ** **  **  ** **       **  **  ** ******    #
#    ****** **  ** **  **  ** ****** *******  *******  ****** **  **  ** ** **  ** **  **  ** **       **  **  ** ******    #
#    **  ** **  ** **  **  ** **     *****    ******   **     **  **  ** ** **  ** **  **  ** ***   ** **  **  **     **    #
#    **  ** ****** **  **  ** ****** **       **  ***  ****** **  **  ** ** ****** **  **  **  ******  **  **  ** ******    #
#    **  ** ****** **  **  ** ****** **       **   *** ****** **  **  ** **  ** ** **  **  **   ****   **  **  ** ******    #
#															    															#
#															    															#
#															    															#
#    2010 - 2011 © HomePremiumCMS made by HomePemium as PremiumEye & Security by HomePremium and Merijnz		    		#
#															    															#
#    Powered by PhoenixPHP 3.7.1 (build 138000)										    									#
#															    															#
#															    															#
#															    															#
*###########################################################################################################################*
*/

define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
define("THIS_SCRIPT", '');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml"> 
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<head>
<title><?php echo $sitename; ?></title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
    <script type="text/javascript" src="Public/JS/jquery.history.js"></script>
    <link type="text/css" rel="stylesheet" href="Public/Styles/<?php echo $currentstyle ?>/CSS/main.css" />
</head> 
 
<body> 

<?php include("system/header_home.php"); ?>

	<div class="mainBox"> 

		<?php include("system/homenav.php"); ?>

		<div class="mid" id="midcontent"> 

			<div class="column" id="column1">

				<div class="l_boxHeader_blue">

					<div class="titel">

						Welkom <?php echo $core->EscapeString($users->UserInfo($username, 'username')); ?>

					</div>

				</div>

				<div class="contentBox">

					<div class="boxContent">

						Leuk dat je hebt geregistreerd op ons hotel!<br />

						Op dit moment heb jij:
                        
                        <br />
                        
                        <br />

						- <b><?php echo $core->EscapeString($users->UserInfo($username, 'credits')); ?></b> Credits<br />

						- <b><?php echo $core->EscapeString($users->UserInfo($username, 'activity_points')); ?></b> Pixels<br />

						- <b><?php echo $core->EscapeString($users->UserInfo($username, 'belcredits')); ?></b> Belcredits<br /><br />

						Veel plezier!

					</div>

				</div>

				<div class="l_boxBottom"></div>

				<div style="margin-top: 10px;" class="l_boxHeader_orange">

					<div class="titel">

						<?php echo $lang['now_in']; ?> <?php echo $lang['hotel_name']; ?>

					</div>

				</div>

				<div class="contentBox">

					<?php 
					$query = mysql_query("SELECT * FROM cms_news WHERE campaign ='1' ORDER BY published DESC LIMIT 5");

					$num = mysql_num_rows($query);
		
					if($num > 0)

						{
	
							$color = 'odd';

						while($campaign = mysql_fetch_array($query))

							{
	
							echo' 

								<div class="campaigncontainer" id="'.$color.'">

									<div class="image" style="background: url('.$campaign['campaignimg'].') no-repeat;"></div>

									<div class="campaign">

										<div class="title"><a href="articles.php?story='.$campaign['id'].'">'.strip_tags($campaign['title']).'</a></div>

										<div class="story">'.strip_tags($campaign['shortstory'], '<br><br/><br />').'</div>

										<div class="published">'.$lang['posted_date'].': '.@date("d-m-Y", $campaign['published']).'</div>

										<div style="float: right;" class="readmore"><a style="color: #399001; text-decoration: underline; font-size: 11px;" href="articles.php?story='.$campaign['id'].'">'.$lang['read_more'].'</a></div>

									</div>

								</div>
							';

						if($color == 'odd')

						$color='even';

						else

						$color='odd';

							}
						}			
					?>

				</div>

				<div class="l_boxBottom"></div>

			</div>	

			<div style="" class="column" id="column2">

				<div id="welcome">

					<img style="margin: 160px 0 0 115px;" src="http://www.habbo.com/habbo-imaging/avatarimage?figure=<?php echo $registerlook; ?>&direction=3&head_direction=3&gesture=sml" />

				</div>

				<div style="margin-top: 10px;" class="m_boxHeader_green"><div class="titel"><?php echo $lang['folow_twitter']; ?></div></div>

                    <div class="m_contentBox">

						<div class="boxContent">

							<script charset="utf-8" src="js/twitterwidget.js"></script>

							<script>
							new TWTR.Widget({
							  version: 2,
							  type: 'profile',
							  rpp: 10,
							  interval: 30000,
							  width: 'auto',
							  height: 300,
							  theme: {
							    shell: {
							      background: '#4A4D4F',
							      color: 'white',
							    },
 							   tweets: {
 							     background: 'white',
 							     color: '#4A4D4F',
							      links: '#FE6301'
							    }
 							 },
							  features: {
 							   scrollbar: true,
							    loop: false,
							    live: false,
							    behavior: 'all'
							  }
							}).render().setUser('<?php echo $twitter ?>').start();
							</script>

						</div>

					</div>

					<div class="m_boxBottom2"></div>

				</div>
	
				<?php include("system/sideads.php"); ?>

			</div> 

			<?php include("system/footer.php"); ?>

		</div> 
        
    </div>
    
</div>

</body> 
</html>